﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class course_arrange : System.Web.UI.Page
{
    
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            DetailsView1.Visible = false;
            GridView1.Visible = false;
            GridView2.Visible = false;
            Label1.Visible = false;
            Label2.Visible = false;
        }
        
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        DetailsView1.Visible = true;
        GridView1.Visible = false;
        GridView2.Visible = false;
        Label1.Visible = false;
        Label2.Visible = false;
    }
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        DetailsView1.Visible = false;
        GridView1.Visible = true;
        GridView2.Visible = true;
        Label1.Visible = true;
        Label2.Visible = true;
    }

    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {

    }

    protected void GridView2_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
    protected void GridView1_RowCommand(object sender,GridViewCommandEventArgs e)
    {
        //if(e.CommandName== "select_course")
        //{
        //    SqlDataSource3.UpdateCommand = "update course set sno=@sno,cno=@cno,cname=@cname,time=@time,credit=@credit  where sno=account_number";
            
        //}
    }
}